package com.server;

import com.doman.Parent;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ParentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Parent record);

    //查询用户信息 添加到家长信息
    int insertSelective(Parent record);

    Parent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Parent record);

    int updateByPrimaryKey(Parent record);

    List<Parent> selectByBindCode(String bindcode);

    //根据openid查询家长信息
    Parent selectByPrimaryByOpenid(Parent parent);

    //根据openid修改老师信息
    int updateByPrimaryByOpenid(Parent parent);

    int deleteByPrimaryByOpenid(Parent parent);
}